package operate;

import book.Book;
import book.BookList;
import org.w3c.dom.ls.LSOutput;

public class ShowBook implements MyInterface{
    public void work(BookList bookList){
        System.out.println("显示图书：");
        int countSize = bookList.getUsedSize();
        for(int i = 0; i < countSize; i++){
            Book book = bookList.getBook(i);
            System.out.println(book);
        }
    }

}
